package exception;


class Annoyance extends Exception{

}

class Sneeze extends Annoyance {

}
class Human {

    public static void main(String[] args) {

        try {
            throw new Sneeze();
        } catch (Sneeze sneeze) {
            System.out.println("sneeze");
        } catch (Annoyance annoyance) {
            System.out.println("annoyance");
        }
        try {
            throw new Sneeze();
        } catch (Annoyance annoyance) {
            System.out.println("annoyance2");
        }

    }

}
